package com.shanzmoo.db.personnel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shanzmoo.base.bean.SResponse;
import com.shanzmoo.db.personnel.entity.MemberAddressEntity;
import com.shanzmoo.db.personnel.entity.dto.MemberAddressSaveDto;
import com.shanzmoo.db.personnel.entity.dto.MemberAddressUpdateDto;
import com.shanzmoo.db.personnel.entity.vo.MemberAddressVo;

import java.util.List;

/**
 * <p>
 * 会员收货地址表 服务类
 * </p>
 *
 * @author Gzhao
 * @since 2020-12-24
 */
public interface IMemberAddressService extends IService<MemberAddressEntity> {

    void addAddress(String memberId, MemberAddressSaveDto saveDto);

    List<MemberAddressVo> getAddressList(String memberId);

    MemberAddressVo getDefaultAddress(Integer memberId);

    SResponse<Boolean> deleteById(Integer id, String memberId);

    SResponse<Boolean> updateAddress(String memberId, MemberAddressUpdateDto updateDto);
}
